package com.woniuxy.service.dto;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "food")
public class FoodForEsDto {
    @Field(type = FieldType.Integer,name = "foodId")
    private Long foodId;
    @Field(type = FieldType.Text,name = "foodName",analyzer = "ik_max_word")
    public String foodName;

}
